/**
 * 菜品页面JS
 */
angular.module('ddapp.dishes', [
])

.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
	$stateProvider
	// 菜品详情页
	.state('detail.dishes', {
		url : '/dishes/{cid}/{did}',
		templateUrl : 'app/dishes/dishes.html',
		controller : 'DishesController'
	})
}])

// 服务控制器
.controller('DishesController', ['$scope','$stateParams','MenuService', function($scope,$stateParams,MenuService) {
	$scope.dishes = MenuService.getdetail($stateParams.cid, $stateParams.did);
}])
;
